"use strict";
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
    if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
        if (ar || !(i in from)) {
            if (!ar) ar = Array.prototype.slice.call(from, 0, i);
            ar[i] = from[i];
        }
    }
    return to.concat(ar || Array.prototype.slice.call(from));
};
Object.defineProperty(exports, "__esModule", { value: true });
var vue_1 = require("vue");
var element_plus_1 = require("element-plus");
// 标签切换状态（保持逻辑不变）
var activeTab = (0, vue_1.ref)('shop');
var currentPage = (0, vue_1.ref)(1);
var pageSize = (0, vue_1.ref)('10');
var totalPages = (0, vue_1.ref)(10);
var jumpPage = (0, vue_1.ref)('');
// 表格数据（保持不变）
var tableData = (0, vue_1.ref)([
    {
        id: 1,
        name: '张云亮',
        gender: '男',
        phone: '13222786789',
        idCard: '32038472894028',
        superior: '张嘉',
        subordinate: '陈辉'
    },
    {
        id: 2,
        name: '陈辉',
        gender: '男',
        phone: '13222786789',
        idCard: '32038472894028',
        superior: '张云亮',
        subordinate: '刘辉'
    },
    {
        id: 3,
        name: '刘辉',
        gender: '男',
        phone: '13222745889',
        idCard: '32038472894028',
        superior: '陈辉',
        subordinate: '李悦'
    }
]);
var pageList = (0, vue_1.computed)(function () { return [1, 2, 3, 4]; });
// 所有逻辑保持不变
var switchTab = function (tab) {
    activeTab.value = tab;
    currentPage.value = 1;
    element_plus_1.ElMessage.info("\u5DF2\u5207\u6362\u81F3".concat(tab === 'agent' ? '代理商端' : '美容院端', "\u5458\u5DE5\u6CE8\u518C\u6570"));
};
var prevPage = function () { return currentPage.value > 1 && currentPage.value--; };
var nextPage = function () { return currentPage.value < totalPages.value && currentPage.value++; };
var handlePageSizeChange = function (size) {
    pageSize.value = size;
    element_plus_1.ElMessage.info("\u5DF2\u5207\u6362\u4E3A".concat(size, "\u6761/\u9875"));
};
var handleJump = function () {
    var page = Number(jumpPage.value);
    if (!isNaN(page) && page >= 1 && page <= totalPages.value) {
        currentPage.value = page;
    }
    else {
        element_plus_1.ElMessage.warning('请输入有效的页码');
    }
    jumpPage.value = '';
};
var handleReturn = function () { return element_plus_1.ElMessage.info('已返回上一页'); };
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
var __VLS_ctx = __assign(__assign({}, {}), {});
var __VLS_elements;
var __VLS_components;
var __VLS_directives;
/** @type {__VLS_StyleScopedClasses['tab-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['tab-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['active']} */ ;
/** @type {__VLS_StyleScopedClasses['page-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['active']} */ ;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "employee-registration-page" }));
var __VLS_0 = {}.ElButton;
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
// @ts-ignore
ElButton;
// @ts-ignore
var __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0(__assign(__assign({ 'onClick': {} }, { type: "text" }), { class: "return-btn" })));
var __VLS_2 = __VLS_1.apply(void 0, __spreadArray([__assign(__assign({ 'onClick': {} }, { type: "text" }), { class: "return-btn" })], __VLS_functionalComponentArgsRest(__VLS_1), false));
var __VLS_4;
var __VLS_5;
var __VLS_6 = ({ click: {} },
    { onClick: (__VLS_ctx.handleReturn) });
var __VLS_7 = __VLS_3.slots.default;
// @ts-ignore
[handleReturn,];
var __VLS_3;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "tab-container" }));
var __VLS_8 = {}.ElButton;
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
// @ts-ignore
ElButton;
// @ts-ignore
var __VLS_9 = __VLS_asFunctionalComponent(__VLS_8, new __VLS_8(__assign({ 'onClick': {} }, { class: (__VLS_ctx.activeTab === 'agent' ? 'tab-btn active' : 'tab-btn') })));
var __VLS_10 = __VLS_9.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { class: (__VLS_ctx.activeTab === 'agent' ? 'tab-btn active' : 'tab-btn') })], __VLS_functionalComponentArgsRest(__VLS_9), false));
var __VLS_12;
var __VLS_13;
var __VLS_14 = ({ click: {} },
    { onClick: function () {
            var _a = [];
            for (var _i = 0; _i < arguments.length; _i++) {
                _a[_i] = arguments[_i];
            }
            var $event = _a[0];
            __VLS_ctx.switchTab('agent');
            // @ts-ignore
            [activeTab, switchTab,];
        } });
var __VLS_15 = __VLS_11.slots.default;
var __VLS_11;
var __VLS_16 = {}.ElButton;
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
// @ts-ignore
ElButton;
// @ts-ignore
var __VLS_17 = __VLS_asFunctionalComponent(__VLS_16, new __VLS_16(__assign({ 'onClick': {} }, { class: (__VLS_ctx.activeTab === 'shop' ? 'tab-btn active' : 'tab-btn') })));
var __VLS_18 = __VLS_17.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { class: (__VLS_ctx.activeTab === 'shop' ? 'tab-btn active' : 'tab-btn') })], __VLS_functionalComponentArgsRest(__VLS_17), false));
var __VLS_20;
var __VLS_21;
var __VLS_22 = ({ click: {} },
    { onClick: function () {
            var _a = [];
            for (var _i = 0; _i < arguments.length; _i++) {
                _a[_i] = arguments[_i];
            }
            var $event = _a[0];
            __VLS_ctx.switchTab('shop');
            // @ts-ignore
            [activeTab, switchTab,];
        } });
var __VLS_23 = __VLS_19.slots.default;
var __VLS_19;
var __VLS_24 = {}.ElTable;
/** @type {[typeof __VLS_components.ElTable, typeof __VLS_components.elTable, typeof __VLS_components.ElTable, typeof __VLS_components.elTable, ]} */ ;
// @ts-ignore
ElTable;
// @ts-ignore
var __VLS_25 = __VLS_asFunctionalComponent(__VLS_24, new __VLS_24(__assign(__assign(__assign({ data: (__VLS_ctx.tableData), border: true }, { class: "data-table" }), { style: {} }), { headerCellStyle: ({ background: '#f5f7fa' }), cellStyle: ({ padding: '8px' }) })));
var __VLS_26 = __VLS_25.apply(void 0, __spreadArray([__assign(__assign(__assign({ data: (__VLS_ctx.tableData), border: true }, { class: "data-table" }), { style: {} }), { headerCellStyle: ({ background: '#f5f7fa' }), cellStyle: ({ padding: '8px' }) })], __VLS_functionalComponentArgsRest(__VLS_25), false));
var __VLS_28 = __VLS_27.slots.default;
// @ts-ignore
[tableData,];
var __VLS_29 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_30 = __VLS_asFunctionalComponent(__VLS_29, new __VLS_29({
    prop: "id",
    label: "ID",
    align: "center",
}));
var __VLS_31 = __VLS_30.apply(void 0, __spreadArray([{
        prop: "id",
        label: "ID",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_30), false));
var __VLS_34 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_35 = __VLS_asFunctionalComponent(__VLS_34, new __VLS_34({
    prop: "name",
    label: "职员姓名",
}));
var __VLS_36 = __VLS_35.apply(void 0, __spreadArray([{
        prop: "name",
        label: "职员姓名",
    }], __VLS_functionalComponentArgsRest(__VLS_35), false));
var __VLS_39 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_40 = __VLS_asFunctionalComponent(__VLS_39, new __VLS_39({
    prop: "gender",
    label: "性别",
    align: "center",
}));
var __VLS_41 = __VLS_40.apply(void 0, __spreadArray([{
        prop: "gender",
        label: "性别",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_40), false));
var __VLS_44 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_45 = __VLS_asFunctionalComponent(__VLS_44, new __VLS_44({
    prop: "phone",
    label: "手机号",
    align: "center",
}));
var __VLS_46 = __VLS_45.apply(void 0, __spreadArray([{
        prop: "phone",
        label: "手机号",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_45), false));
var __VLS_49 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_50 = __VLS_asFunctionalComponent(__VLS_49, new __VLS_49({
    prop: "idCard",
    label: "身份证号",
    align: "center",
}));
var __VLS_51 = __VLS_50.apply(void 0, __spreadArray([{
        prop: "idCard",
        label: "身份证号",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_50), false));
var __VLS_54 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_55 = __VLS_asFunctionalComponent(__VLS_54, new __VLS_54({
    prop: "superior",
    label: "上级",
    align: "center",
}));
var __VLS_56 = __VLS_55.apply(void 0, __spreadArray([{
        prop: "superior",
        label: "上级",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_55), false));
var __VLS_59 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_60 = __VLS_asFunctionalComponent(__VLS_59, new __VLS_59({
    prop: "subordinate",
    label: "下级",
    align: "center",
}));
var __VLS_61 = __VLS_60.apply(void 0, __spreadArray([{
        prop: "subordinate",
        label: "下级",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_60), false));
var __VLS_27;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "pagination-area" }));
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "total-info" }));
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "page-controls" }));
var __VLS_64 = {}.ElButton;
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
// @ts-ignore
ElButton;
// @ts-ignore
var __VLS_65 = __VLS_asFunctionalComponent(__VLS_64, new __VLS_64(__assign({ 'onClick': {} }, { type: "text", icon: "el-icon-arrow-left", disabled: (__VLS_ctx.currentPage === 1) })));
var __VLS_66 = __VLS_65.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { type: "text", icon: "el-icon-arrow-left", disabled: (__VLS_ctx.currentPage === 1) })], __VLS_functionalComponentArgsRest(__VLS_65), false));
var __VLS_68;
var __VLS_69;
var __VLS_70 = ({ click: {} },
    { onClick: (__VLS_ctx.prevPage) });
// @ts-ignore
[currentPage, prevPage,];
var __VLS_67;
var _loop_1 = function (page) {
    // @ts-ignore
    [pageList,];
    var __VLS_72 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_73 = __VLS_asFunctionalComponent(__VLS_72, new __VLS_72(__assign(__assign({ 'onClick': {} }, { key: (page) }), { class: (__VLS_ctx.currentPage === page ? 'page-btn active' : 'page-btn') })));
    var __VLS_74 = __VLS_73.apply(void 0, __spreadArray([__assign(__assign({ 'onClick': {} }, { key: (page) }), { class: (__VLS_ctx.currentPage === page ? 'page-btn active' : 'page-btn') })], __VLS_functionalComponentArgsRest(__VLS_73), false));
    var __VLS_76 = void 0;
    var __VLS_77 = void 0;
    var __VLS_78 = ({ click: {} },
        { onClick: function () {
                var _a = [];
                for (var _i = 0; _i < arguments.length; _i++) {
                    _a[_i] = arguments[_i];
                }
                var $event = _a[0];
                __VLS_ctx.currentPage = page;
                // @ts-ignore
                [currentPage, currentPage,];
            } });
    var __VLS_79 = __VLS_75.slots.default;
    (page);
};
var __VLS_75;
for (var _i = 0, _a = __VLS_getVForSourceType((__VLS_ctx.pageList)); _i < _a.length; _i++) {
    var page = _a[_i][0];
    _loop_1(page);
}
var __VLS_80 = {}.ElButton;
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
// @ts-ignore
ElButton;
// @ts-ignore
var __VLS_81 = __VLS_asFunctionalComponent(__VLS_80, new __VLS_80(__assign({ 'onClick': {} }, { type: "text", icon: "el-icon-arrow-right", disabled: (__VLS_ctx.currentPage === __VLS_ctx.totalPages) })));
var __VLS_82 = __VLS_81.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { type: "text", icon: "el-icon-arrow-right", disabled: (__VLS_ctx.currentPage === __VLS_ctx.totalPages) })], __VLS_functionalComponentArgsRest(__VLS_81), false));
var __VLS_84;
var __VLS_85;
var __VLS_86 = ({ click: {} },
    { onClick: (__VLS_ctx.nextPage) });
// @ts-ignore
[currentPage, totalPages, nextPage,];
var __VLS_83;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "page-size" }));
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({});
var __VLS_88 = {}.ElSelect;
/** @type {[typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, ]} */ ;
// @ts-ignore
ElSelect;
// @ts-ignore
var __VLS_89 = __VLS_asFunctionalComponent(__VLS_88, new __VLS_88(__assign(__assign({ 'onChange': {} }, { modelValue: (__VLS_ctx.pageSize), size: "mini" }), { class: "size-select" })));
var __VLS_90 = __VLS_89.apply(void 0, __spreadArray([__assign(__assign({ 'onChange': {} }, { modelValue: (__VLS_ctx.pageSize), size: "mini" }), { class: "size-select" })], __VLS_functionalComponentArgsRest(__VLS_89), false));
var __VLS_92;
var __VLS_93;
var __VLS_94 = ({ change: {} },
    { onChange: (__VLS_ctx.handlePageSizeChange) });
var __VLS_95 = __VLS_91.slots.default;
// @ts-ignore
[pageSize, handlePageSizeChange,];
var __VLS_96 = {}.ElOption;
/** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
// @ts-ignore
ElOption;
// @ts-ignore
var __VLS_97 = __VLS_asFunctionalComponent(__VLS_96, new __VLS_96({
    label: "10条/页",
    value: "10",
}));
var __VLS_98 = __VLS_97.apply(void 0, __spreadArray([{
        label: "10条/页",
        value: "10",
    }], __VLS_functionalComponentArgsRest(__VLS_97), false));
var __VLS_101 = {}.ElOption;
/** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
// @ts-ignore
ElOption;
// @ts-ignore
var __VLS_102 = __VLS_asFunctionalComponent(__VLS_101, new __VLS_101({
    label: "20条/页",
    value: "20",
}));
var __VLS_103 = __VLS_102.apply(void 0, __spreadArray([{
        label: "20条/页",
        value: "20",
    }], __VLS_functionalComponentArgsRest(__VLS_102), false));
var __VLS_106 = {}.ElOption;
/** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
// @ts-ignore
ElOption;
// @ts-ignore
var __VLS_107 = __VLS_asFunctionalComponent(__VLS_106, new __VLS_106({
    label: "50条/页",
    value: "50",
}));
var __VLS_108 = __VLS_107.apply(void 0, __spreadArray([{
        label: "50条/页",
        value: "50",
    }], __VLS_functionalComponentArgsRest(__VLS_107), false));
var __VLS_91;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "jump-area" }));
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({});
var __VLS_111 = {}.ElInput;
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
// @ts-ignore
ElInput;
// @ts-ignore
var __VLS_112 = __VLS_asFunctionalComponent(__VLS_111, new __VLS_111(__assign(__assign({ 'onKeyup': {} }, { modelValue: (__VLS_ctx.jumpPage), size: "mini" }), { class: "jump-input" })));
var __VLS_113 = __VLS_112.apply(void 0, __spreadArray([__assign(__assign({ 'onKeyup': {} }, { modelValue: (__VLS_ctx.jumpPage), size: "mini" }), { class: "jump-input" })], __VLS_functionalComponentArgsRest(__VLS_112), false));
var __VLS_115;
var __VLS_116;
var __VLS_117 = ({ keyup: {} },
    { onKeyup: (__VLS_ctx.handleJump) });
// @ts-ignore
[jumpPage, handleJump,];
var __VLS_114;
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({});
var __VLS_119 = {}.ElButton;
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
// @ts-ignore
ElButton;
// @ts-ignore
var __VLS_120 = __VLS_asFunctionalComponent(__VLS_119, new __VLS_119(__assign(__assign({ 'onClick': {} }, { type: "primary", size: "mini" }), { class: "jump-btn" })));
var __VLS_121 = __VLS_120.apply(void 0, __spreadArray([__assign(__assign({ 'onClick': {} }, { type: "primary", size: "mini" }), { class: "jump-btn" })], __VLS_functionalComponentArgsRest(__VLS_120), false));
var __VLS_123;
var __VLS_124;
var __VLS_125 = ({ click: {} },
    { onClick: (__VLS_ctx.handleJump) });
var __VLS_126 = __VLS_122.slots.default;
// @ts-ignore
[handleJump,];
var __VLS_122;
/** @type {__VLS_StyleScopedClasses['employee-registration-page']} */ ;
/** @type {__VLS_StyleScopedClasses['return-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['tab-container']} */ ;
/** @type {__VLS_StyleScopedClasses['data-table']} */ ;
/** @type {__VLS_StyleScopedClasses['pagination-area']} */ ;
/** @type {__VLS_StyleScopedClasses['total-info']} */ ;
/** @type {__VLS_StyleScopedClasses['page-controls']} */ ;
/** @type {__VLS_StyleScopedClasses['page-size']} */ ;
/** @type {__VLS_StyleScopedClasses['size-select']} */ ;
/** @type {__VLS_StyleScopedClasses['jump-area']} */ ;
/** @type {__VLS_StyleScopedClasses['jump-input']} */ ;
/** @type {__VLS_StyleScopedClasses['jump-btn']} */ ;
var __VLS_export = (await Promise.resolve().then(function () { return require('vue'); })).defineComponent({});
exports.default = {};
